class FakeEntries < ActiveRecord::Migration
  def self.up
    puts "Creating fake Player"
    p = Player.new
    p.id = 1
    p.name = Name.new("[!]Fake","Player[!]")
    p.created_at = Time.now
    p.save!
    
    puts "Creating fake Pair"
    p = Pair.new
    p.id = 1
    p.lock = false
    p.created_at = Time.now
    p.save!
    
    puts "Creating fake Team"
    p = Team.new
    p.id = 1
    p.team_name = "[!]Fake Team[!]"
    p.lock = false  
    p.created_at = Time.now
    p.save!
    
    puts "Creating fake Event type"
    p = EventType.new    
    p.id = 1
    p.event_type_desc = "[!]Fake Event Type[!]"
    p.created_at = Time.now
    p.save!    
        
    puts "Creating fake Event"
    p = Event.new    
    p.id = 1
    p.event_title = "[!]Fake Event[!]"
    p.event_type_id = 1
    p.created_at = Time.now
    p.save!
  end

  def self.down
    EventType.find(1).destroy!
    Event.find(1).destroy!
    Player.find(1).destroy!
    Pair.find(1).destroy!
    Team.find(1).destroy!
  end
end
